package com.ican.oc.domain;

import java.io.Serializable;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name="product_to_category")
public class OcProductToCategory implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @EmbeddedId
    private OcProductToCategoryPK pk;
    
    public OcProductToCategory(){
        
    }
    
    public OcProductToCategory(Integer productId, Integer categoryId){
        this.pk = new OcProductToCategoryPK();
        this.pk.setProductId(productId);
        this.pk.setCategoryId(categoryId);
    }
    
    public OcProductToCategoryPK getPk() {
        return pk;
    }
    public void setPk(OcProductToCategoryPK pk) {
        this.pk = pk;
    }
}
